<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.js"></script>
</head>
<body>
<div id="result"></div>
<script>
    $("#result").html(1 == null ? 0 : 2);
</script>
</body>

</html>